<?php
require 'head.php';

$row=$data['user'];
?>
<link href="./assets/css/bootstrap.min.css" rel="stylesheet">
  <script src="./assets/js/jQuery.min.js"></script>
  <script src="./assets/js/bootstrap.min.js"></script>

<div style="color:white;" class="row">
  <div class="col-md-10 col-md-offset-1 mlist">
    <div class="col-md-4">
      <img src="./posters/<?php echo $row["pic"];?>" width="200" height="250">
          <ul class="list-inline row text-center">
           <li>
           <h3><!-- <a href="index.php?c=index&m=show&vid=<?php echo $row["vid"];?>"> --><?php echo $row["uname"];?></a></h3></li>  
          </ul>
          <ul class="list-inline row text-center">
    </div>
    <div class="col-md-6">
      
          <tr>
         <center> <td><font color=yellow>用户列表</font></td></center>
          </tr>
          <table class="table">
          <tr>
           <td>用户名</td>
          <td><?php echo $row['uname'];?></td>
          </tr>
          <td>id</td>
          <td><?php echo $row['uid'];?></td>
          </tr>
          <tr>
          <td>性别</td>
          <td><?php  if($row['gender']==0){
                           echo '男';}
                             else{
                           echo '女';}
                        ?></td>
          </tr>
          <tr>
          <td>学历</td>
          <td>
          <?php 
          switch ($row['degree']) {
                        case '1':
                        echo '高中';
                        break;
                        case '2':
                        echo '大学';
                        break;
                        case '3':
                        echo '研究生';
                        break;
                        case '4':
                        echo '博士生';
                        break;
                        default: 
                        echo '没选择';
                        break;
          }
          ?>
          </td>
          </tr>
          <tr>
          <td>生日</td>
          <td><?php echo $row['birthdate'];?></td>
          </tr>
          <tr>
          <td>爱好</td>
          <td><?php echo $row['hobby'];?></td>
          </tr>
          <tr>
          <td><a href="#">修改密码</a></td>
          <td><a href="index.php?c=index&m=edituser&uid=<?php echo $row['uid'];?>">修改用户资料</a></td>
          </tr>
          </table>
    </div>   
  </div>

     <div class="col-md-10 col-md-offset-1 mlist">
       
            <h1 class="s1 text-center">个人说明</h1>
            <div class="form-group">
            <div class="col-md-12">
                <textarea name="content" required class="form-control" cols="80" rows="10"> <?php echo $row["intro"];?> </textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-4 col-md-offset-5 ">
                 
         </div>
     </div>

     
 </div>